package com.itbaizhan.config;

import org.springframework.cache.CacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

/**
 * @author spf
 * @date 2024/3/4
 * @time 16:21
 */
// 详情配置类
@Configuration
public class DetailsCacheConfig extends RedisCacheConfiguration{

    /**
     * 创建缓存管理器。
     * @param redisConnectionFactory Redis连接工厂
     * @return
     */
    @Bean
    public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory){
        return super.cacheManager(redisConnectionFactory);
    }
}
